package com.example.designpattenexample.flyweight;

//具体享元对象
public class ConcreteFlyweight extends Flyweight {

    private String innerState;

    public ConcreteFlyweight(String innerState) {
        this.innerState = innerState;
    }

    @Override
    public void operation(String extrinsicState) {
        System.out.println("内部状态:" + innerState + " 外部状态：" + extrinsicState);
    }
}
